package com.ossjk.oa.accounting.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ossjk.core.base.entity.BaseEntity;

/**
 * <p>
 * 
 * </p>
 *
 * @author chair
 * @since 2020-05-14
 */
@TableName("cw_cpttypes")
public class CwCpttypes extends BaseEntity<CwCpttypes> {

	private static final long serialVersionUID = 1L;

	@TableId("id")
	private String id;
	/**
	 * 账户名称
	 */
	@TableField("cpttpname")
	private String cpttpname;
	/**
	 * 卡号
	 */
	@TableField("cardno")
	private String cardno;
	/**
	 * 密码
	 */
	@TableField("cpttppwd")
	private String cpttppwd;
	/**
	 * 启用时间
	 */
	@JSONField(format = "yyyy-MM-dd")
	@TableField("starttime")
	private Date starttime;
	/**
	 * 停用时间
	 */
	@JSONField(format = "yyyy-MM-dd")
	@TableField("endtime")
	private Date endtime;
	/**
	 * 描述
	 */
	@TableField("descb")
	private String descb;
	/**
	 * 状态 1-业务数据、2-系统数据
	 */
	@TableField("state")
	private BigDecimal state;
	/**
	 * 逻辑删除 1-未删除、2-已删除
	 */
	@TableField("isdelete")
	private BigDecimal isdelete;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCpttpname() {
		return cpttpname;
	}

	public void setCpttpname(String cpttpname) {
		this.cpttpname = cpttpname;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getCpttppwd() {
		return cpttppwd;
	}

	public void setCpttppwd(String cpttppwd) {
		this.cpttppwd = cpttppwd;
	}

	public Date getStarttime() {
		return starttime;
	}

	public void setStarttime(Date starttime) {
		this.starttime = starttime;
	}

	public Date getEndtime() {
		return endtime;
	}

	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public String getDescb() {
		return descb;
	}

	public void setDescb(String descb) {
		this.descb = descb;
	}

	public BigDecimal getState() {
		return state;
	}

	public void setState(BigDecimal state) {
		this.state = state;
	}

	public BigDecimal getIsdelete() {
		return isdelete;
	}

	public void setIsdelete(BigDecimal isdelete) {
		this.isdelete = isdelete;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CwCpttypes{" + ", id=" + id + ", cpttpname=" + cpttpname + ", cardno=" + cardno + ", cpttppwd="
				+ cpttppwd + ", starttime=" + starttime + ", endtime=" + endtime + ", descb=" + descb + ", state="
				+ state + ", isdelete=" + isdelete + "}";
	}
}
